package com.huayun.dcsp.common.utils;

import org.springframework.beans.factory.InitializingBean;

public class TestBean implements InitializingBean {  
    String name;  
  
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }  
    
    
    TestBean(String name){
    	this.name=name;
        System.out.println("******************************");
    	System.out.println("constructor is called:"+name);  
        System.out.println("******************************");
    }
  
    public void init() {  
        System.out.println("init-method is called:"+name);  
        System.out.println("******************************");  
    }  
  
    
    //@Override  
    public void afterPropertiesSet() throws Exception {  
    
        System.out.println("afterPropertiesSet is called:"+name);  
        System.out.println("******************************");  
    }  
}  